package com.fortune.dto.in.clientRepayment;

import com.fortune.common.paging.PagingDto;
import com.fortune.constants.enums.Repayment;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

public class ClientRepaymentList extends PagingDto{
    @ApiModelProperty(example="搜索关键词")
    private String search;
    @ApiModelProperty(example="司机")
    private String driver;
    @ApiModelProperty(example="是否付款(YES,NO)")
    private String pay;
    @ApiModelProperty(example="付款方式")
    private String payType;
    @ApiModelProperty(example="是否已送达(YES,NO)")
    private String delivery;
    @ApiModelProperty(example="空箱是否入库(YES,NO)")
    private String boxIn;
    @ApiModelProperty(example="是否已入账(YES,NO)")
    private String account;
    @ApiModelProperty(example="排序依据(起始日期:startTime,截止日期:endTime,满数量:achieveNum,赠数量:giftNum,优惠名称:name,商品名称:productName,商品编号:producNumber,默认为startTime)",allowableValues = "startTime,endTime,achieveNum,giftNum,name,productName,producNumber")
    private String order;
    @Min(value = 0,message = "最小值为0")
    @Max(value = 1,message = "最大值为1")
    @ApiModelProperty(example="排序类型(0升序,1降序,默认为1)")
    private Integer type;

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }


    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }


    public String getPay() {
        return pay;
    }

    public void setPay(String pay) {
        this.pay = pay;
    }

    public String getDelivery() {
        return delivery;
    }

    public void setDelivery(String delivery) {
        this.delivery = delivery;
    }

    public String getBoxIn() {
        return boxIn;
    }

    public void setBoxIn(String boxIn) {
        this.boxIn = boxIn;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "ClientRepaymentList{" +
                "search='" + search + '\'' +
                ", driver='" + driver + '\'' +
                ", pay=" + pay +
                ", payType='" + payType + '\'' +
                ", delivery=" + delivery +
                ", boxIn=" + boxIn +
                ", account=" + account +
                '}';
    }
}
